package pratima.innerClass;

public class MemberInnerClass {
	
	private String nameOut = "Name from outer class";
	class MyInnerClass {
		public void sayHello() {
			System.out.println("Hello from Member Inner class");
			System.out.println("Name from out class "+nameOut);
		}
	}
	
	public static void main(String[] args) {
		MemberInnerClass outerObject = new MemberInnerClass();
		MemberInnerClass.MyInnerClass demo = outerObject.new MyInnerClass();
		
		demo.sayHello();
	}

}
